package com.xinjian.jianba.utils;

/**
 * 公共常量.
 *
 *
 */
public final class Constants {

	private Constants() {
	}

	/**
	 * 注册时redis中短信前缀.
	 */
	public static final String REGISTER__SMS_CODE_PRE = "register_code_pre_";

	/**
	 * 找回密码时缓存中短信前缀
	 */
	public static final String FORGET_PASSWORDSMS_SMS_CODE_PRE = "forget_passwordsms_sms_code_pre_";

	/**
	 * 设置支付密码时缓存中短信前缀
	 */
	public static final String PAY_SMS_CODE_PRE = "pay_sms_code_pre_";

	/**
	 * 短信验证码错误信息
	 */
	public static final String CODE_ERROR = "验证码错误!";

	public static final String CODE_OUT_OF_DATE = "验证码过期请重新发送!";

	/**
	 * 验证码:内容(字母+数字).
	 */
	public static final String STR_NUM = "123456789";

    /**
     * 验证码:长度.
     */
    public static final Integer CAPTCHA_LENGTH = 6;
    
    /**
     * 缓存 值保持时间 1分钟.
     */
    public static final Integer ACTIVITY_TIME_1_MINIC = 60 * 1;
    /**
     * 前台toke的key.
     */
    public static final String TOKEN = "token";
    
    /**
     * list分割.
     */
    public static final Integer CUT_LIST_SIZE = 500;
    
    /**
     * redis访问流量前缀
     */
    public static final String BUZI_VISIT="buzi_visit_";

    
	/**
	 * H5活动投票前缀
	 */
	public static final String H5_ACTI_VOTE = "vote->";


	public static String SUCCESS = "SUCCESS"; //成功return_code

	public static String FAIL = "FAIL"; //失败return_code
}
